package cn.yunhe.pojo;

import java.io.Serializable;

public class Record implements Serializable {
    private int id;
    private Double rmoney;
    private String rdate;
    private String rmark;
    private Account fromAccount;
    private Account toAccount;

    public Record() {
    }

    public Record(Double rmoney, String rdate, String rmark, Account fromAccount, Account toAccount) {
        this.rmoney = rmoney;
        this.rdate = rdate;
        this.rmark = rmark;
        this.fromAccount = fromAccount;
        this.toAccount = toAccount;
    }

    public Record(int id, Double rmoney, String rdate, String rmark, Account fromAccount, Account toAccount) {
        this.id = id;
        this.rmoney = rmoney;
        this.rdate = rdate;
        this.rmark = rmark;
        this.fromAccount = fromAccount;
        this.toAccount = toAccount;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Double getRmoney() {
        return rmoney;
    }

    public void setRmoney(Double rmoney) {
        this.rmoney = rmoney;
    }

    public String getRdate() {
        return rdate;
    }

    public void setRdate(String rdate) {
        this.rdate = rdate;
    }

    public String getRmark() {
        return rmark;
    }

    public void setRmark(String rmark) {
        this.rmark = rmark;
    }

    public Account getFromAccount() {
        return fromAccount;
    }

    public void setFromAccount(Account fromAccount) {
        this.fromAccount = fromAccount;
    }

    public Account getToAccount() {
        return toAccount;
    }

    public void setToAccount(Account toAccount) {
        this.toAccount = toAccount;
    }
}
